package com.meida.paotui.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 订单表
 *
 * @author flyme
 * @date 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_goodsorder")
@TableAlias("goodsorder")
@ApiModel(value="订单对象", description="订单表")
public class BusGoodsorder extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "goodsOrderId", type = IdType.ID_WORKER)
    private Long goodsOrderId;

    @ApiModelProperty(value = "商品")
    private String goods;

    @ApiModelProperty(value = "购买地址")
    private String buyAddress;

    @ApiModelProperty(value = "购买省")
    private String buyProvince;

    @ApiModelProperty(value = "购买市")
    private String buyCity;

    @ApiModelProperty(value = "购买区")
    private String buyDistrict;

    @ApiModelProperty(value = "购买维度")
    private String buyLng;

    @ApiModelProperty(value = "购买经度")
    private String buyLat;

    @ApiModelProperty(value = "购买乡镇")
    private String buyTownship;

    @ApiModelProperty(value = "购买村")
    private String buyVillage;

    @ApiModelProperty(value = "收货地址")
    private String receiptAddress;

    @ApiModelProperty(value = "收货省")
    private String receiptProvince;

    @ApiModelProperty(value = "收货市")
    private String receiptCity;

    @ApiModelProperty(value = "收货区")
    private String receiptDistrict;

    @ApiModelProperty(value = "收货维度")
    private String receiptLng;

    @ApiModelProperty(value = "收货经度")
    private String receiptLat;

    @ApiModelProperty(value = "收货乡镇")
    private String receiptTownship;

    @ApiModelProperty(value = "收货村")
    private String receiptVillage;

    @ApiModelProperty(value = "送货时间")
    private String receiptTime;

    @ApiModelProperty(value = "选择重量")
    private String weightPriceId;

    @ApiModelProperty(value = "重量价格")
    private BigDecimal weightPrice;

    @ApiModelProperty(value = "是否验货")
    private Integer inspection;

    @ApiModelProperty(value = "货物价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "佣金")
    private BigDecimal commission;

    @ApiModelProperty(value = "小费")
    private BigDecimal tip;

    @ApiModelProperty(value = "创建日期")
    private String createDate;

    @ApiModelProperty(value = "状态(是否显示)")
    private Integer status;

    @ApiModelProperty(value = "发布人")
    private Long userId;

    @ApiModelProperty(value = "付款时间")
    private String payTime;

    @ApiModelProperty(value = "付款类型")
    private String payType;

    @ApiModelProperty(value = "备注")
    private String mome;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "送货人id")
    private Long sendUserInfoId;

    @ApiModelProperty(value = "购买详细地址")
    private String buyDetailAdress;

    @ApiModelProperty(value = "购买手机号")
    private String buyMobile;

    @ApiModelProperty(value = "购买人名字")
    private String buyname;

    @ApiModelProperty(value = "收货详细地址")
    private String receiptDetailAdress;

    @ApiModelProperty(value = "收货手机号")
    private String receiptMobile;

    @ApiModelProperty(value = "收货名字")
    private String receiptName;

    @ApiModelProperty(value = "收货时间")
    private String deliveryTime;

    @ApiModelProperty(value = "验证码")
    private String code;

    @ApiModelProperty(value = "取消时间")
    private String cancelTime;

    @ApiModelProperty(value = "支付订单id")
    private String payOrderId;

    @ApiModelProperty(value = "取消类型")
    private String cancelType;

    @ApiModelProperty(value = "实际支付金额")
    private BigDecimal realPaySum;

    @ApiModelProperty(value = "申请取消时间")
    private String applyCancelTime;

    @ApiModelProperty(value = "骑手佣金")
    private BigDecimal riderCommission;
    @ApiModelProperty(value = "平台佣金")
    private BigDecimal platformCommission;
    @ApiModelProperty(value = "运输工具")
    private String deliveryTool;
    @ApiModelProperty(value = "最晚送达时间")
    private String sendlastTime;
    @ApiModelProperty(value = "取货时间")
    private String pickupTime;
    @ApiModelProperty(value = "收件码")
    private String affirmCode;
    @ApiModelProperty(value = "是否开发票")
    private Integer isInvoice;
    @ApiModelProperty(value = "发票id")
    private Long invoiceId;
    @ApiModelProperty(value = "配送距离")
    private  Double  distance;
    @ApiModelProperty(value = "配送重量")
    private  Double  weight;
    @ApiModelProperty(value = "优惠券id")
    private  Long  couponId;

}
